package org.hughie.springframework.test.bean;

import org.hughie.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hughie.cheng
 * @since 2023/9/14
 */
@Component
public class UserDao {

    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "Hughie，深圳，福田");
        hashMap.put("10002", "Tom，香港，尖沙咀");
        hashMap.put("10003", "Julia，上海，浦东");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }

}

